package com.haohope.excel;

import java.util.Map;

import com.haohope.excel.exceptions.ExcelException;

public class UnKownExcelRowReader extends IExcelRowReader {
	@SuppressWarnings("rawtypes")
	public UnKownExcelRowReader(Class tmpClass) {
		super(tmpClass);
	}
	public UnKownExcelRowReader(Integer tmpSheet,Integer tmpHeadRow,Integer tmpHeadRowsheet) {
		super(tmpSheet, tmpHeadRow, tmpHeadRowsheet);
	}
	@SuppressWarnings("rawtypes")
	public UnKownExcelRowReader(Class tmpClass,Integer tmpSheet, Integer tmpHeadRow, Integer tmpHeadRowsheet) {
		super(tmpClass,tmpSheet, tmpHeadRow, tmpHeadRowsheet);
	}
	@Override
	protected void appendRef(String ref) {
	}
	@Override
	protected Object getObject(String sheetname, int sheetIndex, int curRow, Map<String, String> rowObj)
			throws ExcelException {
		return this.map2bean(sheetname,sheetIndex, curRow, rowObj, this.tmpClass==null?ExcelBean.class:this.tmpClass);
	}
}
